/**
 ******************************************************************************
 * @file				gpio_key.h
 * @Software			MDK V5
 * @Target 			    CW32F030
 * @author			    ou_teki
 * @encoding			UTF-8
 * @date				2024-0420
 ******************************************************************************
 */

#ifndef		__GPIO_KEY_H__
#define		__GPIO_KEY_H__

#ifdef __cplusplus
extern "C" {
#endif

/* Files include */
#include "stdint.h"
#include "stdbool.h"
#include "stdlib.h"
#include "string.h"
#include "stdio.h"

#include  "cw32f030_rcc.h"
#include  "cw32f030_gpio.h"

#define KEY_DELAY 10

#define		KEY_PORT 		CW_GPIOB
#define		KEY_PIN_1		GPIO_PIN_13
#define		KEY_PIN_2		GPIO_PIN_14
#define		KEY_PIN_3		GPIO_PIN_15

void						KeyInit(void);
// GPIO_PinState		KeyCan(GPIO_TypeDef *key_port, uint16_t key_pin);


#ifdef __cplusplus
}
#endif

#endif /* __GPIO_KEY_H__ */
/*lint -restore */
